package com.zjzywl.smoke.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjzywl.smoke.entity.AlarmReasons;
import com.zjzywl.smoke.repository.AlarmReasonsRepository;
import com.zjzywl.smoke.service.AlarmReasonsService;
@Service
public class AlarmReasonsServiceImpl implements AlarmReasonsService {
	@Autowired
	private AlarmReasonsRepository alarmReasonsRepository;

	@Override
	public void deleteByType(String string) {
		// TODO Auto-generated method stub
		alarmReasonsRepository.deleteByType(string);
	}

	@Override
	public void save(AlarmReasons entity) {
		// TODO Auto-generated method stub
		alarmReasonsRepository.save(entity);
		
	}
}
